home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{2CDFC64D-E662-11D1-AB7E-9375ABA736FF}#1.0#0"; "MOUSEBLAST.OCX"
- Begin VB.Form Form1
- Caption = "Visual Enterprises Mouse Blaster Ver 1.0"
- ClientHeight = 3180
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 4680
- Icon = "form1.frx":0000
- LinkTopic = "Form1"
- LockControls = -1 'True
- ScaleHeight = 3180
- ScaleWidth = 4680
- StartUpPosition = 3 'Windows Default
- Begin MouseBLST.MouseBlast MouseBlast1
- Left = 2175
- Top = 2685
- _ExtentX = 2408
- _ExtentY = 847
- End
- Begin VB.PictureBox Picture2
- BackColor = &H00808000&
- Height = 2040
- Left = 75
- ScaleHeight = 1980
- ScaleWidth = 4470
- TabIndex = 4
- Top = 600
- Width = 4530
- Begin VB.Label lblMsgFilVal
- Appearance = 0 'Flat
- BackColor = &H80000005&
- BorderStyle = 1 'Fixed Single
- ForeColor = &H80000008&
- Height = 225
- Left = 3720
- TabIndex = 19
- Top = 750
- Width = 510
- End
- Begin VB.Label Label1
- BackColor = &H00808000&
- Caption = "Window Handle"
- ForeColor = &H00FFFFFF&
- Height = 195
- Left = 60
- TabIndex = 17
- Top = 15
- Width = 1200
- End
- Begin VB.Label lblWhwnd
- Appearance = 0 'Flat
- BackColor = &H80000005&
- BorderStyle = 1 'Fixed Single
- Caption = "0"
- ForeColor = &H80000008&
- Height = 210
- Left = 1335
- TabIndex = 16
- Top = 30
- Width = 1260
- End
- Begin VB.Label Label2
- BackColor = &H00808000&
- Caption = "Message Found"
- ForeColor = &H00FFFFFF&
- Height = 225
- Left = 30
- TabIndex = 15
- Top = 375
- Width = 1260
- End
- Begin VB.Label lblMsgFound
- Appearance = 0 'Flat
- BackColor = &H80000005&
- BorderStyle = 1 'Fixed Single
- Caption = "No Message Found"
- ForeColor = &H80000008&
- Height = 255
- Left = 1320
- TabIndex = 14
- Top = 375
- Width = 1950
- End
- Begin VB.Label Label3
- BackColor = &H00808000&
- Caption = "Message Filter"
- ForeColor = &H00FFFFFF&
- Height = 255
- Left = 45
- TabIndex = 13
- Top = 750
- Width = 1140
- End
- Begin VB.Label lblFilter
- Appearance = 0 'Flat
- BackColor = &H80000005&
- BorderStyle = 1 'Fixed Single
- ForeColor = &H80000008&
- Height = 225
- Left = 1335
- TabIndex = 12
- Top = 750
- Width = 2325
- End
- Begin VB.Label Label4
- BackColor = &H00808000&
- Caption = "Double Click Speed ms"
- ForeColor = &H00FFFFFF&
- Height = 195
- Left = 45
- TabIndex = 11
- Top = 1110
- Width = 1755
- End
- Begin VB.Label lblDblClick
- Appearance = 0 'Flat
- BackColor = &H80000005&
- BorderStyle = 1 'Fixed Single
- Caption = "500"
- ForeColor = &H80000008&
- Height = 210
- Left = 1800
- TabIndex = 10
- Top = 1095
- Width = 1125
- End
- Begin VB.Label Label5
- BackColor = &H00808000&
- Caption = "Message Action"
- ForeColor = &H00FFFFFF&
- Height = 240
- Left = 45
- TabIndex = 9
- Top = 1455
- Width = 1245
- End
- Begin VB.Label lblAction
- Appearance = 0 'Flat
- BackColor = &H80000005&
- BorderStyle = 1 'Fixed Single
- ForeColor = &H80000008&
- Height = 210
- Left = 1320
- TabIndex = 8
- Top = 1470
- Width = 285
- End
- Begin VB.Label Label7
- BackColor = &H00808000&
- Caption = "HEX"
- ForeColor = &H00FFFFFF&
- Height = 210
- Left = 2670
- TabIndex = 7
- Top = 15
- Width = 405
- End
- Begin VB.Label lblHwndHex
- Appearance = 0 'Flat
- BackColor = &H80000005&
- BorderStyle = 1 'Fixed Single
- ForeColor = &H80000008&
- Height = 210
- Left = 3135
- TabIndex = 6
- Top = 30
- Width = 1320
- End
- Begin VB.Label lblMsgActCap
- Appearance = 0 'Flat
- BackColor = &H80000005&
- BorderStyle = 1 'Fixed Single
- ForeColor = &H80000008&
- Height = 210
- Left = 1680
- TabIndex = 5
- Top = 1470
- Width = 1710
- End
- End
- Begin VB.PictureBox Picture1
- BackColor = &H00808000&
- FillColor = &H00404000&
- FillStyle = 0 'Solid
- Height = 495
- Left = 810
- ScaleHeight = 435
- ScaleWidth = 3720
- TabIndex = 1
- Top = 0
- Width = 3780
- Begin VB.Label Label8
- BackColor = &H00808000&
- BackStyle = 0 'Transparent
- Caption = "Visual Enterprises"
- BeginProperty Font
- Name = "Arial"
- Size = 15.75
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H0000FFFF&
- Height = 360
- Index = 1
- Left = 240
- TabIndex = 3
- Top = 15
- Width = 2850
- End
- Begin VB.Label Label8
- BackColor = &H00808000&
- Caption = "Visual Enterprises"
- BeginProperty Font
- Name = "Arial"
- Size = 15.75
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00000000&
- Height = 360
- Index = 0
- Left = 285
- TabIndex = 2
- Top = 15
- Width = 2850
- End
- End
- Begin VB.CommandButton CmdExit
- Caption = "Exit"
- Height = 300
- Left = 3720
- TabIndex = 0
- Top = 2775
- Width = 825
- End
- Begin VB.Label Label6
- BackColor = &H0000FFFF&
- Caption = "TEST ON GREY AREA"
- Height = 210
- Left = 195
- TabIndex = 18
- Top = 2745
- Width = 1815
- End
- Begin VB.Image Image1
- Height = 690
- Left = 60
- Picture = "form1.frx":0442
- Top = -120
- Width = 780
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private MouseMsgFound As Integer
- Private Sub CmdExit_Click()
- MouseBlast1.RemoveFilter ' Removes the User Defined Filter
- Unload Form1
- End Sub
- Private Sub Form_DblClick()
- lblMsgFound.Caption = "Double Clicked"
- End Sub
- Private Sub Form_Load()
- MouseBlast1.DblClickSpeed = 510 ' Set Double Click Speed to 510 ms (500ms Normal)
- MouseBlast1.Caption = "MouseBlst1" ' Mouse Blaster Control Caption
- MouseBlast1.MsgAction = MsgRemove ' Mouse Blaster Action (Remove Message from Window Queue)
- MouseBlast1.WinHwnd = hWnd 'Destination Window to Install Message Filter (Handle)Form1.hwnd
- MouseBlast1.WinMsgTrap = WM_RBUTTONDOWN ' Queue Message to Filter
- ' Update Captions for User Inetrface
- lblDblClick.Caption = MouseBlast1.DblClickSpeed
- lblFilter.Caption = MouseBlast1.WinMsgTrap
- lblMsgFound.Caption = MouseBlast1.MsgFound: MouseMsgFound = MouseBlast1.MsgFound
- lblWhwnd.Caption = MouseBlast1.WinHwnd
- lblAction.Caption = MouseBlast1.MsgAction
- ' Update User Interface lblMsgActCap Label
- If MouseBlast1.MsgAction = MsgRemove Then
- lblMsgActCap.Caption = "Remove Message"
- ElseIf MouseBlast1.MsgAction = MsgNoRemove Then
- lblMsgActCap.Caption = "NO Remove Message"
- End If
- lblHwndHex.Caption = Hex(MouseBlast1.WinHwnd)
- MouseBlast1.FilterMsg ' Install the Defined Message Filter
- lblMsgFound.Caption = MouseMsgFound ' Is 0 when no messages filtered (1= Message Filtered)
- ' Resets to 0 after a each check is made .
- End Sub
- Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
- lblMsgFound.Caption = "Mouse Down"
- If Button = 1 Then ' Left Mouse Button was pressed
- 'MsgBox "Left Mouse Button Down", vbOKOnly, "Mouse Event Message"
- lblMsgFound.Caption = "Left Mouse Down"
- End If
- If Button = 2 Then ' Right Mouse Button Pressed
- 'MsgBox "Right Mouse Button Down", vbOKOnly, "Mouse Event Message"
- lblMsgFound.Caption = "Right Mouse Down"
- End If
- End Sub
- Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- lblMsgFound.Caption = "Mouse Moved"
- MouseMsgFound = MouseBlast1.MsgFound ' 0 when no messages filtered (1= Message Filtered)
- ' Resets to 0 after the value loads into MouseMsgFound.
- lblMsgFilVal.Caption = MouseBlast1.WinMsgTrap ' Display Filtered Message Long Value
- If Button = 1 Then ' Left Mouse Button was pressed
- 'MsgBox "Left Mouse Move", vbOKOnly, "Mouse Event Message"
- lblMsgFound.Caption = "Left Mouse Move"
- End If
- If Button = 2 Then ' Right Mouse Button Pressed
- 'MsgBox "Right Mouse Move", vbOKOnly, "Mouse Event Message"
- lblMsgFound.Caption = "Right Mouse Move"
- End If
- ' Check Filter MsgFound status "Check for user specified filterd message"
- If MouseBlast1.WinMsgTrap = WM_RBUTTONDOWN And MouseMsgFound = 1 Then
- lblFilter.Caption = "WM_RBUTTONDOWN"
- MouseMsgFound = 0 ' Clears the holding Variable
- ElseIf MouseBlast1.WinMsgTrap = WM_LBUTTONDOWN And MouseMsgFound = 1 Then
- lblFilter.Caption = "WM_LBUTTONDOWN"
- MouseMsgFound = 0
- ElseIf MouseBlast1.WinMsgTrap = WM_MOUSEMOVE And MouseMsgFound = 1 Then
- lblFilter.Caption = "WM_MOUSEMOVE"
- MouseMsgFound = 0
- ElseIf MouseBlast1.WinMsgTrap = WM_RBUTTONUP And MouseMsgFound = 1 Then
- lblFilter.Caption = "WM_RBUTTONUP"
- MouseMsgFound = 0
- ElseIf MouseBlast1.WinMsgTrap = WM_LBUTTONUP And MouseMsgFound = 1 Then
- lblFilter.Caption = "WM_LBUTTONUP"
- MouseMsgFound = 0
- ElseIf MouseBlast1.WinMsgTrap = WM_LBUTTONDBLCLK And MouseMsgFound = 1 Then
- lblFilter.Caption = "WM_LBUTTONDBLCLK"
- MouseMsgFound = 0
- ElseIf MouseBlast1.WinMsgTrap = WM_RBUTTONDBLCLK And MouseMsgFound = 1 Then
- lblFilter.Caption = "WM_RBUTTONDBLCLK"
- MouseMsgFound = 0
- End If
- End Sub
- Private Sub Form_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
- ' Update User Capton Msg Found
- lblMsgFound.Caption = "Mouse Up"
- If Button = 1 Then ' Left Mouse Button was pressed
- 'MsgBox "Left Mouse Button Up", vbOKOnly, "Mouse Event Message"
- lblMsgFound.Caption = "Left Mouse Up"
- End If
- If Button = 2 Then ' Right Mouse Button Pressed
- 'MsgBox "Right Mouse Button Up", vbOKOnly, "Mouse Event Message"
- lblMsgFound.Caption = "Right Mouse Up"
- End If
- End Sub
-